package xyz.flowlight.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import xyz.flowlight.domain.entity.User;


/**
 * (User)表数据库访问层
 *
 * @author kuailemao
 * @since 2023-10-13 15:02:40
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT * FROM user WHERE username = #{username} AND password = #{password}")
    User findByUsernameAndPassword(@Param("username") String username,
                                   @Param("password") String password);


}
